﻿<%@ Page Language="C#" MasterPageFile="~/AdminMaster.Master" AutoEventWireup="true" CodeBehind="tbReadingConfig.aspx.cs" Inherits="MyWeb.Admin.tbReadingConfig" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" > 
    <div class="PageName">Quản lý cấu hình</div>
    <div id = "LocBang">      
        <asp:Label ID = "lblChoseStates" Text = "Chọn bang :" runat = "server"></asp:Label>  <asp:DropDownList ID ="ddlFilterStates" runat = "server" ></asp:DropDownList>       
    </div>
<asp:Panel ID="pnView" runat="server">
<div class="Control"><ul><li><asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" onclick="AddButton_Click">Thêm mới</asp:LinkButton></li> <li><asp:LinkButton CssClass="vdelete" ID="lbtDeleteT" runat="server" onclick="DeleteButton_Click">Xóa</asp:LinkButton></li> <li> <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" onclick="RefreshButton_Click">Làm mới</asp:LinkButton></li> <li> <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Trở lại</a> </li></ul></div>
<asp:Datagrid ID="grdtbReadingConfig" runat="server" width="100%" CssClass="TableView" AutoGenerateColumns="False" AllowPaging="True" PageSize="50" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Center" onitemdatabound="grdtbReadingConfig_ItemDataBound" onitemcommand="grdtbReadingConfig_ItemCommand" onpageindexchanged="grdtbReadingConfig_PageIndexChanged"> <HeaderStyle CssClass="trHeader"></HeaderStyle> <ItemStyle CssClass="trOdd"></ItemStyle> <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle> <Columns>
<asp:TemplateColumn ItemStyle-CssClass="tdCenter"> <HeaderTemplate> <asp:CheckBox id="chkSelectAll" Runat="server" AutoPostBack="False"></asp:CheckBox> </HeaderTemplate> <ItemTemplate> <asp:CheckBox id="chkSelect" runat="server"></asp:CheckBox> </ItemTemplate> <ItemStyle CssClass="tdCenter"></ItemStyle> </asp:TemplateColumn>
<asp:BoundColumn DataField="rid" HeaderText="rid" Visible="False" />
<asp:BoundColumn DataField="startTitleString" HeaderText="Start Title String (ST)" ItemStyle-CssClass="MultiLine" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="CheckBox"> <HeaderTemplate>Include both ST</HeaderTemplate> <ItemTemplate><asp:Image runat="server" ImageUrl='<%#MyWeb.Common.PageHelper.ShowCheckImage(DataBinder.Eval(Container.DataItem, "startTitlePoint").ToString())%>' /></ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="endTitleString" HeaderText="End Title String (ET)" ItemStyle-CssClass="MultiLine" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="CheckBox"> <HeaderTemplate>Include both ET</HeaderTemplate> <ItemTemplate><asp:Image runat="server" ImageUrl='<%#MyWeb.Common.PageHelper.ShowCheckImage(DataBinder.Eval(Container.DataItem, "endTitlePoint").ToString())%>' /></ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="startJackpotString" HeaderText="Start Jackpot String (SJ)" ItemStyle-CssClass="MultiLine" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="CheckBox"> <HeaderTemplate>Include both SJ</HeaderTemplate> <ItemTemplate><asp:Image runat="server" ImageUrl='<%#MyWeb.Common.PageHelper.ShowCheckImage(DataBinder.Eval(Container.DataItem, "startJackpotPoint").ToString())%>' /></ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="endJackpotString" HeaderText="End Jackpot String (EJ)" ItemStyle-CssClass="MultiLine" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="CheckBox"> <HeaderTemplate>Include both EJ</HeaderTemplate> <ItemTemplate><asp:Image runat="server" ImageUrl='<%#MyWeb.Common.PageHelper.ShowCheckImage(DataBinder.Eval(Container.DataItem, "endJackpotPoint").ToString())%>' /></ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="Repeat" HeaderText="Repeat" ItemStyle-CssClass="Number" Visible="true" />
<asp:BoundColumn DataField="ord" HeaderText="Ord" ItemStyle-CssClass="Number" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="Function"> <HeaderTemplate>Chức năng</HeaderTemplate> <ItemTemplate><asp:ImageButton ID="cmdEdit" runat="server" AlternateText="Sửa" CommandName="Edit" CssClass="Edit" ToolTip="Sửa" ImageUrl="/App_Themes/Admin/images/edit.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"rid")%>' /><asp:ImageButton ID="cmdDelete" runat="server" AlternateText="Xóa" CommandName="Delete" CssClass="Delete" ToolTip="Xóa" ImageUrl="/App_Themes/Admin/images/delete.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"rid")%>' OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" /></ItemTemplate> </asp:TemplateColumn>
</Columns><PagerStyle HorizontalAlign="Center" CssClass="Paging" Position="Bottom" NextPageText="Previous" PrevPageText="Next" Mode="NumericPages"></PagerStyle></asp:Datagrid>
<div class="Control"><ul><li><asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" onclick="AddButton_Click">Thêm mới</asp:LinkButton></li> <li><asp:LinkButton CssClass="vdelete" ID="lbtDeleteB" runat="server" onclick="DeleteButton_Click">Xóa</asp:LinkButton></li> <li><asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server" onclick="RefreshButton_Click">Làm mới</asp:LinkButton></li> <li> <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Trở lại</a> </li></ul></div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
<tr> <td class="Control" colspan="2"><ul><li><asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton></li> <li> <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" onclick="Back_Click" CausesValidation="False">Trở về</asp:LinkButton></li> </ul></td> </tr>
<tr> <th> <asp:Label ID="lblstaid" runat="server" Text="State:"></asp:Label></th><td><asp:DropDownList ID="ddltbStates" runat="server"></asp:DropDownList> <asp:RequiredFieldValidator ID="rfvtbStates" runat="server" ControlToValidate="ddltbStates" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblrid" runat="server" Text=":"></asp:Label></th><td><asp:TextBox ID="txtrid" runat="server" CssClass="text"></asp:TextBox><asp:RequiredFieldValidator ID="rfvrid" runat="server" ControlToValidate="txtrid" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblstartTitleString" runat="server" Text="Start Title String (ST):"></asp:Label></th><td><asp:TextBox ID="txtstartTitleString" runat="server" CssClass="text multiline" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvstartTitleString" runat="server" ControlToValidate="txtstartTitleString" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblstartTitlePoint" runat="server" Text="Include both ST:"></asp:Label></th><td><asp:CheckBox ID="chkstartTitlePoint" runat="server" /></td></tr><tr> <th> <asp:Label ID="lblendTitleString" runat="server" Text="End Title String (ET):"></asp:Label></th><td><asp:TextBox ID="txtendTitleString" runat="server" CssClass="text multiline" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvendTitleString" runat="server" ControlToValidate="txtendTitleString" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblendTitlePoint" runat="server" Text="Include both ET:"></asp:Label></th><td><asp:CheckBox ID="chkendTitlePoint" runat="server" /></td></tr><tr> <th> <asp:Label ID="lblstartJackpotString" runat="server" Text="Start Jackpot String (SJ):"></asp:Label></th><td><asp:TextBox ID="txtstartJackpotString" runat="server" CssClass="text multiline" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvstartJackpotString" runat="server" ControlToValidate="txtstartJackpotString" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblstartJackpotPoint" runat="server" Text="Include both SJ:"></asp:Label></th><td><asp:CheckBox ID="chkstartJackpotPoint" runat="server" /></td></tr><tr> <th> <asp:Label ID="lblendJackpotString" runat="server" Text="End Jackpot String (EJ):"></asp:Label></th><td><asp:TextBox ID="txtendJackpotString" runat="server" CssClass="text multiline" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvendJackpotString" runat="server" ControlToValidate="txtendJackpotString" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblendJackpotPoint" runat="server" Text="Include both EJ:"></asp:Label></th><td><asp:CheckBox ID="chkendJackpotPoint" runat="server" /></td></tr><tr> <th> <asp:Label ID="lblRepeat" runat="server" Text="Repeat:"></asp:Label></th><td><asp:TextBox ID="txtRepeat" runat="server" CssClass="text number"/><asp:RequiredFieldValidator ID="rfvRepeat" runat="server" ControlToValidate="txtRepeat" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblord" runat="server" Text="Ord:"></asp:Label></th><td><asp:TextBox ID="txtord" runat="server" CssClass="text number"/><asp:RequiredFieldValidator ID="rfvord" runat="server" ControlToValidate="txtord" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <td class="Control" colspan="2"><ul><li><asp:LinkButton CssClass="uupdate" ID="lbtUpdateB" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton></li> <li> <asp:LinkButton CssClass="uback" ID="lbtBackB" runat="server"  onclick="Back_Click" CausesValidation="False">Trở về</asp:LinkButton></li> </ul></td> </tr></table>
</asp:Panel>
</asp:Content>
